import Layout from '@/views/layout'
import Layout2 from '@/views/layout/index2'

const lecture = {
  path: '/lectureHallManage',
  component: Layout2,
  redirect: 'noredirect',
  name: 'lectureHallManage',
  needAuth: true,
  meta: { title: '大讲堂管理', icon: 'operData' },
  children: [
    {
      path: '/courseManage',
      component: Layout,
      meta: { title: '课程管理', noCache: true, breadcrumb: false },
      redirect: '/courseManage/index',
      name: 'courseManage',
      needAuth: true,
      children: [
        {
          path: 'index',
          name: 'courseManage',
          component: () => import('@/views/lectureHallManage/courseManage/index'),
          meta: { title: '课程管理', noCache: true },
        },
        {
          path: 'add',
          name: 'courseManageAdd',
          component: () => import('@/views/lectureHallManage/courseManage/dataForm'),
          meta: { title: '新增课程', noCache: true },
          hidden: true
        },
        {
          path: 'edit',
          name: 'courseManageEdit',
          component: () => import('@/views/lectureHallManage/courseManage/dataForm'),
          meta: { title: '编辑课程', noCache: true },
          hidden: true
        },
        {
          path: 'view',
          name: 'courseManageView',
          component: () => import('@/views/lectureHallManage/courseManage/dataForm'),
          meta: { title: '查看课程', noCache: true },
          hidden: true
        },
      ]
    },
    {
      path: '/lecturerManage',
      component: Layout,
      meta: { title: '讲师管理', noCache: true, breadcrumb: false },
      redirect: '/lecturerManage/index',
      name: 'lecturerManage',
      needAuth: true,
      children: [
        {
          path: 'index',
          name: 'lecturerManage',
          component: () => import('@/views/lectureHallManage/lecturerManage/index'),
          meta: { title: '讲师管理', noCache: true },
        },
        {
          path: 'add',
          name: 'lecturerManageAdd',
          component: () => import('@/views/lectureHallManage/lecturerManage/dataForm'),
          meta: { title: '新增讲师', noCache: true },
          hidden: true
        },
        {
          path: 'edit',
          name: 'lecturerManageEdit',
          component: () => import('@/views/lectureHallManage/lecturerManage/dataForm'),
          meta: { title: '编辑讲师', noCache: true },
          hidden: true
        },
        {
          path: 'view',
          name: 'lecturerManageView',
          component: () => import('@/views/lectureHallManage/lecturerManage/dataForm'),
          meta: { title: '查看讲师', noCache: true },
          hidden: true
        },
      ]
    },
    {
      path: '/trainingManage',
      component: Layout,
      meta: { title: '培训管理', noCache: true, breadcrumb: false },
      redirect: '/trainingManage/index',
      name: 'trainingManage',
      needAuth: true,
      children: [
        {
          path: 'index',
          name: 'trainingManage',
          component: () => import('@/views/lectureHallManage/trainingManage/index'),
          meta: { title: '培训管理', noCache: true },
        },
        {
          path: 'add',
          name: 'trainingManageAdd',
          component: () => import('@/views/lectureHallManage/trainingManage/dataForm'),
          meta: { title: '新增培训', noCache: true },
          hidden: true
        },
        {
          path: 'edit',
          name: 'trainingManageEdit',
          component: () => import('@/views/lectureHallManage/trainingManage/dataForm'),
          meta: { title: '编辑培训', noCache: true },
          hidden: true
        },
        {
          path: 'view',
          name: 'trainingManageView',
          component: () => import('@/views/lectureHallManage/trainingManage/dataForm'),
          meta: { title: '查看培训', noCache: true },
          hidden: true
        },
      ]
    },
    {
      path: '/lectureHallBananer',
      component: Layout,
      meta: { title: '页面管理', breadcrumb: false },
      redirect: '/lectureHallBananer/index',
      name: 'lectureHallBananer',
      needAuth: true,
      children: [{
        path: 'index',
        name: 'lectureHallBananerIndex',
        component: () => import('@/views/newsManage/homeBananer'),
        meta: { title: '页面管理', noCache: true }
      }]
    },
  ]
}

export default lecture